package enum_package;

enum Direction {
    NORTH,
    SOUTH,
    EAST,
    WEST;
    public String toString(){
      return "Direction: " + name();
    }
    public boolean isCold() {
      return  this == NORTH;
    }
  }

public class test3Enum
{
    public static void main(String[] args)
    {
        System.out.println(Direction.EAST);
        System.out.println(Direction.EAST.isCold());
    }
}
